package com.eden.inject;

import java.lang.reflect.Method;

/**
 * Created by Administrator on 2017/11/16.
 */

public class Injector {


    public static void inject(Object object) {//object 是一个activity
        try {
            Class<?> clazz = Class.forName(object.getClass().getCanonicalName() + "$Bind");
            Method method = clazz.getDeclaredMethod("inject",Object.class);
            method.invoke(null, object);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }

}
